﻿@model BrnMall.Web.StoreAdmin.Models.CreditModel

@section header{
    <title>积分设置-店铺管理</title>
    <link type="text/css" rel="stylesheet" href="/admin_store/css/site.css"/>
    <script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/jquery.validate.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/jquery.validate.unobtrusive.js"></script>
    <script type="text/javascript">
        $(function () {
            $(".addTag li").click(function () {
                $(".addTag li").removeClass("hot");
                $(this).addClass("hot");
                $(".addTable").hide().eq($(this).index()).show(0);

            })

            $(".addBt").click(function () {
                $("form:first").submit();
                return false;
            })
        });
    </script>
}

@section body{
    <h1 class="rightH1">
        微信小程序 > 店铺管理 > <span class="rightH1-cur">积分设置</span>
        <div class="right">
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </h1>

    @using (Html.BeginForm())
    {
        @Html.HiddenFor(x=>x.Id);
        @Html.HiddenFor(x=>x.StoreId)
        <div class="addTable">
            <div style="color:#ff8427;margin:5px;padding-left:15px; font-size:16px;">支付积分</div>
            <table width="100%">
                <tr>
                    <td  style="width:135px" align="right">名称：</td>
                    <td>
                        @Html.TextBoxFor(x => x.PayCreditName, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.PayCreditName)
                    </td>
                </tr>

                <tr>
                    <td align="right">价格：</td>
                    <td>
                        @Html.TextBoxFor(x => x.PayCreditPrice, new { @class = "input", size = "35" })元;&nbsp;&nbsp;(注:每100个折合成多少元) @Html.ValidationMessageFor(x => x.PayCreditPrice)
                    </td>
                </tr>

                <tr>
                    <td align="right">注册：</td>
                    <td>
                        @Html.TextBoxFor(x => x.RegisterPayCredits, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.RegisterPayCredits)
                    </td>
                </tr>

                <tr>
                    <td align="right">每天登录：</td>
                    <td>
                        @Html.TextBoxFor(x => x.LoginPayCredits, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.LoginPayCredits)
                    </td>
                </tr>

                <tr style="display: none">
                    <td align="right">验证邮箱：</td>
                    <td>
                        @Html.TextBoxFor(x => x.VerifyEmailPayCredits, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.VerifyEmailPayCredits)
                    </td>
                </tr>

                <tr style="display: none">
                    <td align="right">验证手机：</td>
                    <td>
                        @Html.TextBoxFor(x => x.VerifyMobilePayCredits, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.VerifyMobilePayCredits)
                    </td>
                </tr>

                <tr  style="display: none">
                    <td align="right">完善用户信息：</td>
                    <td>
                        @Html.TextBoxFor(x => x.CompleteUserInfoPayCredits, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.CompleteUserInfoPayCredits)
                    </td>
                </tr>

                <tr>
                    <td align="right">收货：</td>
                    <td>
                        @Html.TextBoxFor(x => x.ReceiveOrderPayCredits, new { @class = "input", size = "35" })%;&nbsp;&nbsp;(注:以订单金额的百分比计算) @Html.ValidationMessageFor(x => x.ReceiveOrderPayCredits)
                    </td>
                </tr>

                <tr>
                    <td align="right">评价商品：</td>
                    <td>
                        @Html.TextBoxFor(x => x.ReviewProductPayCredits, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.ReviewProductPayCredits)
                    </td>
                </tr>

                <tr>
                    <td align="right">每天最大发放：</td>
                    <td>
                        @Html.TextBoxFor(x => x.DayMaxSendPayCredits, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.DayMaxSendPayCredits)
                    </td>
                </tr>

                <tr>
                    <td align="right">每笔订单最大使用：</td>
                    <td>
                        @Html.TextBoxFor(x => x.OrderMaxUsePayCredits, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.OrderMaxUsePayCredits)
                    </td>
                </tr>
            </table>
        </div>
        
        <div class="xuxian"></div>
        

        <div class="addTable">
            <div style="color:#ff8427;margin:10px; padding-left:10px; font-size:16px;">等级积分</div>
            <table width="100%">
                <tr>
                    <td  style="width:135px"  align="right">名称：</td>
                    <td>
                        @Html.TextBoxFor(x => x.RankCreditName, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.RankCreditName)
                    </td>
                </tr>

                <tr>
                    <td align="right">注册：</td>
                    <td>
                        @Html.TextBoxFor(x => x.RegisterRankCredits, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.RegisterRankCredits)
                    </td>
                </tr>

                <tr>
                    <td align="right">每天登录：</td>
                    <td>
                        @Html.TextBoxFor(x => x.LoginRankCredits, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.LoginRankCredits)
                    </td>
                </tr>

                <tr style="display: none">
                    <td align="right">验证邮箱：</td>
                    <td>
                        @Html.TextBoxFor(x => x.VerifyEmailRankCredits, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.VerifyEmailRankCredits)
                    </td>
                </tr>

                <tr style="display: none">
                    <td align="right">验证手机：</td>
                    <td>
                        @Html.TextBoxFor(x => x.VerifyMobileRankCredits, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.VerifyMobileRankCredits)
                    </td>
                </tr>

                <tr style="display: none">
                    <td align="right">完善用户信息：</td>
                    <td>
                        @Html.TextBoxFor(x => x.CompleteUserInfoRankCredits, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.CompleteUserInfoRankCredits)
                    </td>
                </tr>

                <tr>
                    <td align="right">收货：</td>
                    <td>
                        @Html.TextBoxFor(x => x.ReceiveOrderRankCredits, new { @class = "input", size = "35" })%;&nbsp;&nbsp;(注:以订单金额的百分比计算) @Html.ValidationMessageFor(x => x.ReceiveOrderRankCredits)
                    </td>
                </tr>

                <tr>
                    <td align="right">评价商品：</td>
                    <td>
                        @Html.TextBoxFor(x => x.ReviewProductRankCredits, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.ReviewProductRankCredits)
                    </td>
                </tr>

                <tr>
                    <td align="right">每天最大发放：</td>
                    <td>
                        @Html.TextBoxFor(x => x.DayMaxSendRankCredits, new { @class = "input", size = "35" })@Html.ValidationMessageFor(x => x.DayMaxSendRankCredits)
                    </td>
                </tr>

                <tr>
                    <td align="right">&nbsp;</td>
                    <td>
                        <a href="" class="addBt" id="sumbitBut2" ><img src="/admin_store/images/submit.jpg" /></a>
                    </td>
                </tr>
                <tr>
                    <td align="right">&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
            </table>
        </div>
    }
}
